﻿
<!--
  /**************************************************
  * @ ordersubmitsd.jsp
  *
  * Copyright   2006 Hitrust Technology Inc.
  * Developed by SDC, Hitrust.
  * All Rights Reserved.
  *
  * Modify History:
  *  v1.00, 2008/09/22, Tuthmos Liu
  *  1) first release
  /**************************************************
-->

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../../../common.jsp" %>
<%@ taglib uri="/page.util.gs.hitrust.com/taglibs/page" prefix="page"%>
<%@page import="system.LoginContext"%>
<%@page import="framework.core.SrvContext"%>
<html>
<head>
<title>手工订单处理</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<!--<LINK href="<%=root%>/css/css.css" type=text/css rel=stylesheet>-->
<LINK href="<%=root%>/css/caigouxitong.css"" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/calendar.js"></SCRIPT>
<%
ArrayList wareList = (ArrayList)request.getAttribute("orderdept");
    ArrayList tManuf1 = (ArrayList) request.getAttribute("manufacture1");
    HashMap tMap1 = (HashMap) request.getAttribute("manufacturetyp2");
    HashMap tMap2 = (HashMap) request.getAttribute("manufacturetyp3");
    ResultProcess tOrder = (ResultProcess)request.getAttribute("order");
    ArrayList tList = new ArrayList();
    String [] tStr = null;
    String isRequery  = (String)request.getAttribute("requery");
    String randNum = GenRandNum.genRandNum(10);
    int row=0;
%>
<script>
    
    var counter;
    
    function process(val){
        if(val == 'Q'){
            var tStr = "";
            var tEnd = "";
            if(!isEmpty(ordersubmitnonflatform.orderCreateDateStr.value)){
                tStr = ordersubmitnonflatform.orderCreateDateStr.value.substr(0,4) + ordersubmitnonflatform.orderCreateDateStr.value.substr(5,2) + ordersubmitnonflatform.orderCreateDateStr.value.substr(8,2);

            }
            if(!isEmpty(ordersubmitnonflatform.orderCreateDateEnd.value)){
                tEnd = ordersubmitnonflatform.orderCreateDateEnd.value.substr(0,4) + ordersubmitnonflatform.orderCreateDateEnd.value.substr(5,2) + ordersubmitnonflatform.orderCreateDateEnd.value.substr(8,2);
            }
            if(parseInt(tStr) > parseInt(tEnd)){
                    alert("订单创建周期的开始日期不能大于截止日期！");
                    return false;
            }
            ordersubmitnonflatform.action = "<%=response.encodeURL(root+"/A151002.do")%>";
            ordersubmitnonflatform.submit();            
        }else if(val == 'C'){
            ordersubmitnonflatform.orderDetailId.value ="";
            ordersubmitnonflatform.orderDeptId.selectedIndext=0;
            ordersubmitnonflatform.manuftype1.value="0";
            ordersubmitnonflatform.providerName.value="";
            
            listbox = document.getElementById("manuftype2");
            listbox.length = 0;
            var option = new Option();
            option.text = "---二级---";
            option.value = "0";
            listbox.options[listbox.length] = option;
        
            listbox = document.getElementById("manuftype3");
            listbox.length = 0;
            var option = new Option();
            option.text = "---三级---";
            option.value = "0";
            listbox.options[listbox.length] = option;       
            
            ordersubmitnonflatform.concentricityId.value = "";
            ordersubmitnonflatform.manufInfo.value = "";
            ordersubmitnonflatform.orderCreateDateStr.value = "";
            ordersubmitnonflatform.orderCreateDateEnd.value = "";
            ordersubmitnonflatform.drawingpiececode.value = "";
            ordersubmitnonflatform.orderDetailStatus.value = "0000";
            return false;       
        }else if(val == 'S'){
            if(pager.orderDetailIds != null){       
                if(!isCheckBoxselected(pager,pager.orderDetailIds)){
                    alert("请至少选择一个订单！");
                    return false;
                }else{
                    if(pager.orderDetailIds.length > 1){
                        for(i=0; i<pager.orderDetailIds.length;i++){
                            if(pager.orderDetailIds[i].checked && pager.orderDtlStatus[i].value != '9'){
                                alert("请选择状态为'订货中'的订单'");
                                return false;
                            }
                        }
                    }else {
                        if(pager.orderDetailIds.checked && pager.orderDtlStatus.value != '9'){
                                alert("请选择状态为'订货中'的订单'");
                                return false;               
                        }
                    }
                    document.pager.orderDetailId.value = document.ordersubmitnonflatform.orderDetailId.value;
                    document.pager.providerName.value = document.ordersubmitnonflatform.providerName.value;                 
                    document.pager.concentricityId.value = document.ordersubmitnonflatform.concentricityId.value;
                    document.pager.orderDeptId.value = document.ordersubmitnonflatform.orderDeptId.value;
                    document.pager.manuftype1.value = document.ordersubmitnonflatform.manuftype1.value;
                    document.pager.manuftype2.value = document.ordersubmitnonflatform.manuftype2.value;
                    document.pager.manuftype3.value = document.ordersubmitnonflatform.manuftype3.value;
                    document.pager.manufInfo.value = document.ordersubmitnonflatform.manufInfo.value;
                    document.pager.orderCreateDateStr.value = document.ordersubmitnonflatform.orderCreateDateStr.value;                                                                             
                    document.pager.orderCreateDateEnd.value = document.ordersubmitnonflatform.orderCreateDateEnd.value; 
                    document.pager.orderDetailStatus.value = document.ordersubmitnonflatform.orderDetailStatus.value;                                                                                               
                    
                    if(confirm("是否确定当前订单已安排送货？")){                      
                        document.pager.action = "<%=response.encodeURL(root+"/A151003.do")%>";          
                        document.pager.submit();
                    }else{
                        return false;
                    }           
                }       
            }else{
                return false;
            }   
        }else if(val == 'R'){
                var obj = new Array(14);
                if(document.pager.orderDetailIds != null){
                    if(!getCheckedLength(document.pager.orderDetailIds,true)){
                        return false;
                    }else{
                        if (pager.orderDetailIds.length > 1){
                            for (i=0;i< pager.orderDetailIds.length;i++){
                                if (pager.orderDetailIds[i].checked == true  && pager.orderDtlStatus[i].value == '10'){
                                    obj[0] = pager.orderDetailIds[i].value;
                                    obj[1] = pager.orderId[i].value;
                                    obj[2] = document.ordersubmitnonflatform.orderDetailId.value;   
                                    obj[3] = document.ordersubmitnonflatform.providerName.value;                    
                                    obj[4] = document.ordersubmitnonflatform.concentricityId.value;
                                    obj[6] = document.ordersubmitnonflatform.orderDeptId.value;
                                    obj[7] = document.ordersubmitnonflatform.manuftype1.value;
                                    obj[8] = document.ordersubmitnonflatform.manuftype2.value;
                                    obj[9] = document.ordersubmitnonflatform.manuftype3.value;
                                    obj[10] = document.ordersubmitnonflatform.manufInfo.value;
                                    obj[11] = document.ordersubmitnonflatform.orderCreateDateStr.value;                                                                             
                                    obj[12] = document.ordersubmitnonflatform.orderCreateDateEnd.value; 
                                    obj[13] = document.ordersubmitnonflatform.orderDetailStatus.value;
                                }else if(pager.orderDetailIds[i].checked == true  && pager.orderDtlStatus[i].value != '10'){
                                    alert("订单状态为'已确认'才可进行收货信息录入");
                                    return false;                           
                                }
                            }
                        }else {
                            if (pager.orderDetailIds.checked == true && pager.orderDtlStatus.value == '10'){
                                obj[0] = pager.orderDetailIds.value;
                                obj[1] = pager.orderId.value;   
                                obj[2] = document.ordersubmitnonflatform.orderDetailId.value;   
                                obj[3] = document.ordersubmitnonflatform.providerName.value;                    
                                obj[4] = document.ordersubmitnonflatform.concentricityId.value;
                                obj[6] = document.ordersubmitnonflatform.orderDeptId.value;
                                obj[7] = document.ordersubmitnonflatform.manuftype1.value;
                                obj[9] = document.ordersubmitnonflatform.manuftype3.value;
                                obj[8] = document.ordersubmitnonflatform.manuftype2.value;
                                obj[10] = document.ordersubmitnonflatform.manufInfo.value;
                                obj[11] = document.ordersubmitnonflatform.orderCreateDateStr.value;                                                                             
                                obj[12] = document.ordersubmitnonflatform.orderCreateDateEnd.value; 
                                obj[13] = document.ordersubmitnonflatform.orderDetailStatus.value;                                                  
                            }else if(pager.orderDetailIds.checked == true && pager.orderDtlStatus.value != '10'){
                                    alert("订单状态为'已确认'才可进行收货确认信息录入");
                                    return false;                           
                            }
                        }                   
                        if(confirm("是否确定录入收货信息？")){ 
                            openwin(obj);                           
                        }else{
                            return false;
                        }
                    }   
                }else{
                    return false;
                }
        }
        else if(val == 'TOA'){//重新提交
        var x=document.getElementsByName("orderDtlStatus");
        var y=document.getElementsByName("orderDetailIds");
        for(var i=0;i<x.length;i++){
            if(y[i].checked==true){
                if(x[i].value=='9'||x[i].value=='10'){
                    alert("不能提交'订货中'和'已确认'的订单");
                    return false;
                }
            }
        }
            var indexs = document.getElementsByName("indexs");
            var isSelected = false;
            for(i=0;i<indexs.length;i++){
                if(indexs[i].checked )
                    isSelected = true;
            }
             if(!isCheckBoxselected(pager,pager.orderDetailIds)){
                    alert("请至少选择一个订单！");
                    return false;
                }   
            if(confirm("是否确定直接提交?")){
                document.pager.action = "<%=response.encodeURL(root+"/A151088.do")%>";  
                document.pager.method="post";       
                document.pager.submit();
            }else{
                return false;
            }
            
        }
    }
    function openwin(obj){
        var result = null;  
        result = showModalDialog("<%=response.encodeURL(root+"/A151004.do")%>?params=" + obj, window,"status:no;unadorned:no;dialogWidth:900px;dialogHeight:1200px;help:no;");
        if(result != null){
            orderrecsigngoodsform.curOrderId.value= result[0];
            orderrecsigngoodsform.curOrderDetailId.value=result[1];
            orderrecsigngoodsform.devGoodsOrderId.value=result[2];
            orderrecsigngoodsform.signer.value=result[3];
            orderrecsigngoodsform.signCount.value=result[4];
            orderrecsigngoodsform.signDate.value=result[5];
            orderrecsigngoodsform.goodsUnitprice.value=result[6];
            orderrecsigngoodsform.contactPerson.value=result[7];
            orderrecsigngoodsform.contactPhone.value=result[8]; 
            //保存查询参数
            orderrecsigngoodsform.orderDetailId.value = document.ordersubmitnonflatform.orderDetailId.value;
            orderrecsigngoodsform.providerName.value = document.ordersubmitnonflatform.providerName.value;                  
            orderrecsigngoodsform.concentricityId.value = document.ordersubmitnonflatform.concentricityId.value;
            orderrecsigngoodsform.orderDeptId.value = document.ordersubmitnonflatform.orderDeptId.value;
            orderrecsigngoodsform.manuftype1.value = document.ordersubmitnonflatform.manuftype1.value;
            orderrecsigngoodsform.manuftype2.value = document.ordersubmitnonflatform.manuftype2.value;
            orderrecsigngoodsform.manuftype3.value = document.ordersubmitnonflatform.manuftype3.value;
            orderrecsigngoodsform.manufInfo.value = document.ordersubmitnonflatform.manufInfo.value;
            orderrecsigngoodsform.orderCreateDateStr.value = document.ordersubmitnonflatform.orderCreateDateStr.value;                                                                              
            orderrecsigngoodsform.orderCreateDateEnd.value = document.ordersubmitnonflatform.orderCreateDateEnd.value;  
            orderrecsigngoodsform.orderDetailStatus.value = document.ordersubmitnonflatform.orderDetailStatus.value;            
            orderrecsigngoodsform.action = "<%=response.encodeURL(root+"/A151005.do")%>";
            orderrecsigngoodsform.submit();                                                                                                     
        }
    }
         
function change1(optval){
  var val = optval;
  if(val=='0'){
    var listbox = document.getElementById("manuftype2");
    listbox.length = 0;
    var option = new Option();
    option.text = "---二级---";
    option.value = "0";
    listbox.options[listbox.length] = option;
    change2(optval);
  }else{
      var counter="0";
    <%if(tMap1 !=null){
      Collection tCollection = tMap1.keySet();
      Iterator tIterator = tCollection.iterator();
      while(tIterator.hasNext()){
        String tKey = (String)tIterator.next();
        tList = (ArrayList)tMap1.get(tKey);%>
        if(val == '<%=tKey%>'){
          counter = "1";
          var listbox = document.getElementById("manuftype2");
          listbox.length = 0;
          var option = new Option();
          option.value = "0";
          option.text = "---二级---";
          listbox.options[listbox.length] = option;
          <%
                for(int n=0;n<tList.size();n++){
                    GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tList.get(n);
                    String categoryId = tGSManufactureBean.getGs_manufacture_category_id();
                    String categoryName = tGSManufactureBean.getGs_manufacture_category_name();%>
                    var temp1 = '<%=categoryId%>';
                    var temp2 = '<%=categoryName%>';
                    var option = new Option();
                    option.value = temp1;
                    option.text = temp2;
                    listbox.options[listbox.length] = option;
           <%
                }
           %>
            change2('0');           
         }
         
    <%
        }
    %>
        if(counter == '0'){
          var listbox = document.getElementById("manuftype2");
          listbox.length = 0;
          var option = new Option();
          option.value = "0";
          option.text = "---二级---";
          listbox.options[listbox.length] = option;  
          change2('0');     
        }
    <%  
    }
    %>
   }
}
    function change2(optval){
      var val = optval;
      if(val=='0'){
        var listbox = document.getElementById("manuftype3");
        listbox.length = 0;
        var option = new Option();
        option.text = "---三级---";
        option.value = "0";
        listbox.options[listbox.length] = option;

      }else{
        var counter = "0";
        <%if(tMap2 !=null){
          Collection tCollection = tMap2.keySet();
          Iterator tIterator = tCollection.iterator();
          while(tIterator.hasNext()){
            String tKey = (String)tIterator.next();
            tList = (ArrayList)tMap2.get(tKey);%>
            if(val == '<%=tKey%>'){
              counter = "1";
              var listbox = document.getElementById("manuftype3");
              listbox.length = 0;
              var option = new Option();
              option.text = "---三级---";
              option.value = "0";
              listbox.options[listbox.length] = option;
              <%for(int n=0;n<tList.size();n++){
                GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tList.get(n);
                String categoryId = tGSManufactureBean.getGs_manufacture_category_id();
                String categoryName = tGSManufactureBean.getGs_manufacture_category_name();%>
                var temp1 = '<%=categoryId%>';
                var temp2 = '<%=categoryName%>';
                var option = new Option();
                option.value = temp1;
                option.text = temp2;
                listbox.options[listbox.length] = option;
                <%}%>
              }
          <%
          }
          %>
          if(counter == '0'){
                var listbox = document.getElementById("manuftype3");
                listbox.length = 0;
                var option = new Option();
                option.text = "---三级---";
                option.value = "0";
                listbox.options[listbox.length] = option;          
          }
          <%
            }%>
          }
        }   
function afterload()
{
  fileopen("OrderSubmitforNonflat.vts");
  var y=document.getElementsByName("orderDetailIds");
  var arr=new Array();
  var arr2=new Array();
  var count=0;
  var ok=0;
  //填入内容
<%
    if(tOrder != null) {
    tList = tOrder.getAllRecoreds();
    for(int j=0;j<tList.size();j++){
        tStr = (String[])tList.get(j);
%>    
        arr[<%=j%>]=new Array();
        <%
        for(int h=0;h<tStr.length;h++){
        %>
            arr[<%=j%>][<%=h%>]='<%=tStr[h]%>';
<%
}
   }
%>
    
    for(var t=0;t<arr.length;t++){
        if(y[t].checked==true){
            if(y[t].value==arr[t][0]){
                arr2[ok]=arr[t];
                ok++;
            }
        }
    }
<%
    int head = 0;
    int tail = 0;
%>
    F1Book1.EntryRC(7,3) = arr2[0][8];
    F1Book1.EntryRC(7,9) = arr2[0][16];
    F1Book1.EntryRC(8,3) = arr2[0][22];
    F1Book1.EntryRC(9,3) = arr2[0][23];
    F1Book1.EntryRC(10,3) = "<%=DateUtil.formateDateTime(DateUtil.getCurrentTime("D","AD"))%>";
    F1Book1.EntryRC(10,9) = "<%=randNum%>";
    F1Book1.EntryRC(11,3) = arr2[0][13];
    F1Book1.EntryRC(12,3) = arr2[0][24];
    if(arr2!=null&&arr2.length>0){
    for(var s=0;s<arr2.length;s++){
      F1Book1.RowHeight(count+15)  = 300;
      F1Book1.EntryRC ( count+15, 1) = arr2[s][0];
      F1Book1.EntryRC ( count+15, 2) = arr2[s][2];
      F1Book1.EntryRC ( count+15, 3) = arr2[s][3];
      F1Book1.EntryRC ( count+15, 4) = arr2[s][5];
      F1Book1.EntryRC ( count+15, 5) = arr2[s][6];
      F1Book1.EntryRC ( count+15, 6) = arr2[s][7];   
      F1Book1.EntryRC ( count+15, 7) = arr2[s][18];          
      F1Book1.EntryRC ( count+15, 8) = arr2[s][9];
      F1Book1.EntryRC ( count+15, 9) = arr2[s][11];
      F1Book1.EntryRC ( count+15, 10) = arr2[s][12];
      F1Book1.EntryRC ( count+15, 11) = arr2[s][14];
      F1Book1.EntryRC ( count+15, 12) = arr2[s][15];
      count = count +1;   
  }
  
 
   //边界设定
  F1CellFormat = F1Book1.CreateNewCellFormat();
  F1Book1.SetSelection(7, 1, 12, 12);
  F1CellFormat.BorderStyle(-2) = 1;
  F1CellFormat.BorderStyle(-1) = 1;
  F1CellFormat.BorderStyle(0) = 2;
  F1CellFormat.BorderStyle(1) = 2;
  F1CellFormat.BorderStyle(2) = 2;
  F1CellFormat.BorderStyle(3) = 2;
  F1CellFormat.BorderColor(-2) = 0;
  F1CellFormat.BorderColor(-1) = 0;
  F1CellFormat.BorderColor(0) = 0;
  F1CellFormat.BorderColor(1) = 0;
  F1CellFormat.BorderColor(2) = 0;
  F1CellFormat.BorderColor(3) = 0;
  F1Book1.SetCellFormat(F1CellFormat);
  
  F1CellFormat = F1Book1.CreateNewCellFormat();
  F1Book1.SetSelection(14,1,count+14,1);
  F1CellFormat.NumberFormat(F1Book1.hWnd) = "###########";
  F1Book1.SetCellFormat(F1CellFormat);
  
  F1CellFormat = F1Book1.CreateNewCellFormat();
  F1Book1.SetSelection(14,8,count+14,8);
  F1CellFormat.NumberFormat(F1Book1.hWnd) = "############.00";
  F1Book1.SetCellFormat(F1CellFormat);
  
  F1CellFormat = F1Book1.CreateNewCellFormat();
  F1Book1.SetSelection(14,9,count+14,9);
  F1CellFormat.NumberFormat(F1Book1.hWnd) = "############.0000";
  F1Book1.SetCellFormat(F1CellFormat);
  
  F1CellFormat = F1Book1.CreateNewCellFormat();
  F1Book1.SetSelection(14,10,count+14,10);
  F1CellFormat.NumberFormat(F1Book1.hWnd) = "############.0000";  
  F1Book1.SetCellFormat(F1CellFormat);
    
  F1CellFormat = F1Book1.CreateNewCellFormat();
  F1Book1.SetSelection(14, 1, count+14, 12);
  F1CellFormat.BorderStyle(-2) = 1;
  F1CellFormat.BorderStyle(-1) = 1;
  F1CellFormat.BorderStyle(0) = 2;
  F1CellFormat.BorderStyle(1) = 2;
  F1CellFormat.BorderStyle(2) = 2;
  F1CellFormat.BorderStyle(3) = 2;
  F1CellFormat.BorderColor(-2) = 0;
  F1CellFormat.BorderColor(-1) = 0;
  F1CellFormat.BorderColor(0) = 0;
  F1CellFormat.BorderColor(1) = 0;
  F1CellFormat.BorderColor(2) = 0;
  F1CellFormat.BorderColor(3) = 0;
  F1Book1.SetCellFormat(F1CellFormat);
  
  //设置字体
  F1CellFormat = F1Book1.CreateNewCellFormat();
  F1Book1.SetSelection(7, 1, count+14, 12);
  F1CellFormat.AlignHorizontal = 2;
  F1CellFormat.AlignVertical = 2;
  F1CellFormat.FontName = "宋体";
  F1CellFormat.FontSize = 6;
  F1Book1.SetCellFormat(F1CellFormat);
  }
<%
  }
%>
}

function fileopen(vts)
{
        var mylink=location.href;
        var i=mylink.length;
        while (mylink.substring(i-1,i)!= "/")
        {i--;}
        mylink=mylink.substring(0,i);
        F1Book1.URL = mylink+"jsp/ordersystem/bus/"+vts;
        F1Book1.ShowRowHeading  = false;
        F1Book1.ShowcolHeading  = false;
        F1Book1.Showtabs  = 0;
        F1Book1.ShowEditBar=false;
        F1Book1.EnableProtection=false;
        F1Book1.SetProtection(true,true);
}

function print_bill(){
    afterload();
    F1Book1.FilePrint(true);
}
function control(val){
        if(val == 'requery'){
            <%
                if(isRequery != null && isRequery.equals("true")){
            %>
            ordersubmitnonflatform.action = "<%=response.encodeURL(root+"/A151002.do")%>";
            ordersubmitnonflatform.submit();            
            <%      
                }
            %>
        }
}
function chkp(){
    if(document.ordersubmitnonflatform.chkprint.checked==true){
        ordersubmitnonflatform.orderDetailStatus.value = "0000";
    }
}
function chkp2(){
var a=ordersubmitnonflatform.orderDetailStatus.value;
    if(a!="0000"){
        document.ordersubmitnonflatform.chkprint.checked=false;
    }
}
</script>
</head>

<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="control('requery')">
<form name=ordersubmitnonflatform method="get" >
<p><br></p>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
        <td height="20">
            <table width="100%" border="0" cellspacing="0" cellpadding="1">
                <tr height="20">
                    <td height="30" width="758" class="mtxt_black">手工处理订单明细
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td class="bg_line" height="2"></td>
    </tr>
</table>
<br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
        <td> 
            <table class=bg_table id=tableId    cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
                <TR height=20>
                    <TD class="bg_column" align=center width="15%">订单明细编号</TD>
                    <TD align=left class="bg_row_odd" width="35%">
                    <input type="text" name="orderDetailId" value="<%=request.getParameter("orderDetailId")==null? "":request.getParameter("orderDetailId") %>" maxlength="11"></TD>                    
                    <TD class="bg_column" align=center width="15%">供应商</TD>
                    <TD align=left class="bg_row_odd" width="35%">
                    <input type="text" name="providerName" value="<%=request.getParameter("providerName")==null? "":request.getParameter("providerName") %>" maxlength="100"></TD>                  
                </TR>
                <TR height=20>                          
                    <TD class="bg_column" align=center>订货单位</TD>
                    <TD left=right class="bg_row_odd" colspan="3">
                        <select name="orderDeptId" id="orderDeptId">                  
                        <option value="<%=LoginContext.get(new SrvContext(request,response)).getLoginWarehouseCode() %>">---全部---</option>
              <%
                            String tOrderDept = request.getParameter("orderDeptId")==null?"":request.getParameter("orderDeptId");
                            if(wareList != null && wareList.size() > 0 ){
                                    for(int i=0; i<wareList.size(); i++){
                                        GSWareHouseBean tmp=(GSWareHouseBean)wareList.get(i);
                                        if(tmp != null && tOrderDept.equals(tmp.getCode())){
                            %>
                                            <option value="<%=tmp.getCode()%>" selected>
                                            <%=tmp.getName()%></option>
                            <%                  
                                        }else{
                            %>
                                            <option value="<%=tmp.getCode()%>"><%=tmp.getName()%></option>
                            <%          
                                        }
                                    }
                                }
                        %>

                        </select>
                    </TD>                     
                </TR>                           
                <TR height=20>
                    <TD class="bg_column" align=center>集中编码</TD>
                    <TD align=left class="bg_row_odd">
                    <input type="text" name="concentricityId" maxlength="20" value="<%=request.getParameter("concentricityId")==null?"":request.getParameter("concentricityId")%>">
                    </TD>
                    <TD class="bg_column" align=center width="15%">订单明细状态</TD>
                    <TD align=left class="bg_row_odd" width="35%">
                        <select name="orderDetailStatus" onchange="chkp2();">                   
                        <option value="0000">---全部---</option>
                        <%
                            String tOrderDetailStatus = request.getParameter("orderDetailStatus");
                            String[][] tDetailStatus = GSBaseManager.getAllBusOrderDetailStatusForSubmit2();
                            if(tDetailStatus != null && tDetailStatus.length > 0 ){
                                for(int i=0; i<tDetailStatus.length; i++){
                                    String[] temp = tDetailStatus[i];
                                    if(tOrderDetailStatus != null && tOrderDetailStatus.equals(temp[0])){
                        %>
                                        <option value="<%=temp[0]%>" selected>
                                        <%=temp[1]%></option>
                        <%                  
                                    }else{
                        %>
                                        <option value="<%=temp[0]%>" >
                                        <%=temp[1]%></option>
                        <%          
                                    }
                                }
                            }
                        %>
                        </select>
                    </TD>                       
                </TR>   
                <TR height=20>
                    <TD class="bg_column" align=center>产品信息</TD>
                    <TD align=left class="bg_row_odd" colspan="3">
                    <input type="text" name="manufInfo" maxlength="200" value="<%=request.getParameter("manufInfo")==null?"":request.getParameter("manufInfo")%>">（<FONT color="#ff0033">对产品名称、型号、规格、品牌、生产厂商、附加属性等关键字的模糊查询</FONT>）&nbsp;
                    </TD>
                </TR>                       
                <TR height=20>                          
                    <TD class="bg_column" align=center>产品分类</TD>
                    <TD left=right class="bg_row_odd">
                      <select name="manuftype1" onChange="change1(this.value)">
                        <option value="0">---一级---</option>
                        <%
                        String tManufType1 = request.getParameter("manuftype1");
                        if (tManuf1 != null && tManuf1.size() > 0) {
                          for (int i = 0; i < tManuf1.size(); i++) {
                            GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean) tManuf1.get(i);
                            if (tManufType1 != null && tManufType1.equals(tGSManufactureBean.getGs_manufacture_category_id())) {
                              %>
                              <option value="<%=tGSManufactureBean.getGs_manufacture_category_id()%>" selected><%=tGSManufactureBean.getGs_manufacture_category_name()%>        </option>
                              <%} else {      %>
                              <option value="<%=tGSManufactureBean.getGs_manufacture_category_id()%>"><%=tGSManufactureBean.getGs_manufacture_category_name()%>        </option>
                              <%
                              }
                            }
                          }
                          %>
                      </select>
                      <select id="manuftype2" name="manuftype2" onChange="change2(this.value)">
                        <option value="0">---二级---</option>
                        <%
                        String tManufType2 = request.getParameter("manuftype2");
                        if (tManufType1 != null && !tManufType1.equals("0")) {
                          ArrayList temp = (ArrayList) tMap1.get(tManufType1);
                          if (temp != null && temp.size() > 0) {
                            for (int i = 0; i < temp.size(); i++) {
                              GSManufactureCategoryBean tGSManuf2 = (GSManufactureCategoryBean) temp.get(i);
                              if (tManufType2 != null && tManufType2.equals(tGSManuf2.getGs_manufacture_category_id())) {
                                %>
                                <option value="<%=tManufType2%>" selected><%=tGSManuf2.getGs_manufacture_category_name()%>        </option>
                                <%} else {      %>
                                <option value="<%=tGSManuf2.getGs_manufacture_category_id()%>"><%=tGSManuf2.getGs_manufacture_category_name()%>        </option>
                                <%
                                }
                              }
                            }
                          }
                          %>
                      </select>
                      <select name="manuftype3" id="manuftype3">
                        <option value="0">---三级---</option>
                        <%
                        String tManufType3 = request.getParameter("manuftype3");
                        if (tManufType2 != null && !tManufType2.equals("0")) {
                          //int tIntManufType3 = Integer.parseInt(tManufType3);
                                ArrayList temp = (ArrayList) tMap2.get(tManufType2);
                                if (temp != null && temp.size() > 0) {
                                for (int i = 0; i < temp.size(); i++) {
                                  GSManufactureCategoryBean tGSManuf3 = (GSManufactureCategoryBean) temp.get(i);
                                  if (tManufType3 != null && tManufType3.equals(tGSManuf3.getGs_manufacture_category_id())) {
                                    %>
                                    <option value="<%=tGSManuf3.getGs_manufacture_category_id()%>" selected><%=tGSManuf3.getGs_manufacture_category_name()%>        </option>
                                    <%} else {      %>
                                    <option value="<%=tGSManuf3.getGs_manufacture_category_id()%>"><%=tGSManuf3.getGs_manufacture_category_name()%>        </option>
                                    <%
                                    }
                                  }
                                }
                          }
                          %>
                      </select>                 
                    </TD>
                    <td class="bg_column" align=center >图件号</td>
                    <td align=left class="bg_row_odd" >
                    <input type="text" name="drawingpiececode" value="<%=request.getParameter("drawingpiececode")==null? "":request.getParameter("drawingpiececode") %>">
                    </td> 
                </TR>
                <%
                SimpleDateFormat bartDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                Date d = new Date();
                String strNow = String.valueOf(bartDateFormat.format(d));
                long l=(long)259200*(long)10000;
                Date d2 = new Date(System.currentTimeMillis()-l);
                String strMothAgo = String.valueOf(bartDateFormat.format(d2));
                
                %>                                                                                          
                <TR height=20>  
                    <TD class="bg_column" align=center>创建时间</TD>
                    <TD align=left class="bg_row_odd">
                    	<%=framework.custom.UIManager.generateDateInput("orderCreateDateStr",
							request.getParameter("orderCreateDateStr")==null?strMothAgo:request.getParameter("orderCreateDateStr"))%>
					
					至
					<%=framework.custom.UIManager.generateDateInput("orderCreateDateEnd",
							request.getParameter("orderCreateDateEnd")==null?strNow:request.getParameter("orderCreateDateEnd"))%>
					
					</TD>
                    
        
                    <TD class="bg_column" colspan="2" align="left">&nbsp;&nbsp;<input type="checkbox" name="chkprint" value="1" onclick="chkp();" <%=request.getParameter("chkprint")==null?"":"checked"%> >只查询可打印订单</TD>
                </TR>
            <%
            int totalRecords = 0;
            if(tOrder != null) {
                if(request.getAttribute("totalRecords")!=null){
                    totalRecords=Integer.parseInt((String)request.getAttribute("totalRecords"));
                }
                int defaultPageSize =10;
                if(request.getAttribute("pageSize")!=null){
                    defaultPageSize=Integer.parseInt((String)request.getAttribute("pageSize"));
                }
                tList=tOrder.getAllRecoreds();
            %>          
            <page:pager total='<%=totalRecords%>' defaultPageSize='<%=defaultPageSize%>'>
            </page:pager>
            <%} %>
            </table>
        </td>
    </tr>
</table>
</form>
    <p align="center">  
<!--        <input type="image" src="< %=response.encodeURL(root+"/images/button/chaxun.gif")%>" width="58" height="24" class="box" onclick="process('Q')"/>&nbsp;-->
<!--        <input type="image" src="< %=response.encodeURL(root+"/images/button/clean.gif")%>" width="58" height="24" class="box" onclick="process('C')"/>&nbsp;               -->
        <input type="button" name="查询" value="查询" class="kuang" onclick="process('Q')"/>&nbsp;
        <input type="button" name="清空" value="清空" class="kuang" onclick="process('C')"/>&nbsp;              
    </p>
<%
    
    if(tOrder != null){
%>
    <center>
    <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
            <td>
            <form name='pager' method="post">
            <input type="hidden" name="orderDetailId">
            <input type="hidden" name="providerName">
            <input type="hidden" name="manuftype1">
            <input type="hidden" name="manuftype2">                     
            <input type="hidden" name="manuftype3">     
            <input type="hidden" name="orderDeptId">                
            <input type="hidden" name="concentricityId"> 
            <input type="hidden" name="manufInfo"> 
            <input type="hidden" name="orderCreateDateStr"> 
            <input type="hidden" name="orderCreateDateEnd">         
            <input type="hidden" name="orderDetailStatus">     
            <input type="hidden" name="deliverGoodsId">
                <table class=bg_table id=tableId cellspacing=1 cellpadding=2 width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_column" height=20>
                        <td class=top align=middle colspan="20"> 
                        <div align="center" class="txt_content"><b>订单明细列表</b>
                          </div>
                        </td>                   
                    </tr> 
                    <tr class="bg_column" height="20">
                      <td class="top" align="right" colSpan="20">共<%=totalRecords%>笔待处理订单明细</td>
                    </tr>                   
                    <tr class="bg_column" height=20> 
                        <td align=middle class=top>
                        <div class="txt_content">全选<input type="checkbox" name="indexs" onClick="SelectAllCheckBox(pager,'orderDetailIds')"></div>
                        </td> 
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订单明细编号</div>
                        </td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订单明细状态</div>
                        </td>                       
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">集中编码</div>
                        </td>                       
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">产品名称</div>
                        </td>
                        <td class="top" align="center">
                          <div class="txt_content" align="center">产品类型</div>
                        </td>                       
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">规格</div>
                        </td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">型号</div>
                        </td>                                                                                                                                               
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">品牌</div>
                        </td>  
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">图件号</div>
                        </td>                                         
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">供应商</div>
                        </td>                           
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订货数量</div>
                        </td>                                                                                   
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">价格（元）</div>
                        </td>                                       
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">总价（元）</div>
                        </td>                                           
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订货单位</div>
                        </td>                                                                                           
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">送货日期</div>
                        </td>                       
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">送货时间</div>
                        </td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">送货地址</div>
                        </td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">提交失败原因</div>
                        </td>                                                                      
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">详细信息</div>
                        </td>                                                                                                                                               
                    </tr>
                    <%
                        
                        if(tList != null && tList.size() > 0){
                        for(int i=0; i<tList.size(); i++){
                            tStr = (String[])tList.get(i);
                            String tTempStr="";
                            if(i%2==0){
                                tTempStr="class=\"bg_row_odd\"";
                            }else {
                                tTempStr="class=\"bg_row_even\"";
                            }
                    %>
                            <tr <%=tTempStr%> height=20>
                                <td class=top>                              
                                    <div align="center" class="txt_content">
                                        <input type="checkbox" name="orderDetailIds" value="<%=tStr[0]%>">
                                        <input type="hidden" name="orderDtlStatus" value="<%=tStr[1]%>">    
                                        <input type="hidden" name="orderDtlTempIds">                                                    
                                        <input type="hidden" name="orderId" value="<%=tStr[17]%>"> 
                                        <input type="hidden" name="danwei" value="<%=tStr[13]%>">                                                                                                                      
                                    </div>
                                </td>                               
                                <td class=top align=middle>                                 
                                    <div align="center" class="txt_content">
                                    <%=tStr[0]%>
                                    <input type='hidden' name='detailId' value='<%=tStr[0]%>'> 
                                    </div>
                                </td>   
                                <td class=top align=middle>                                 
                                    <div align="center" class="txt_content">
                                    <%=GSBaseManager.getOrderDetailStatusName(tStr[1])%>
                                    </div>
                                </td>                                   
                                <td class=top align=middle>                                 
                                    <div align="center" class="txt_content">
                                    <%=tStr[2]%>
                                    <input type='hidden' name='concentricityid' value='<%=tStr[2]%>'>
                                    <input type='hidden' id='manufactureid<%=i%>' name='manufactureId' value='<%=tStr[19]%>'>
                                    </div>
                                </td>                                                       
                                <td class=top align=middle >                                
                                    <div align="center" class="txt_content">
                                    <a href="<%=response.encodeURL(root+"/A150103.do")%>?&concentricityId=<%=tStr[2]%>" target="_blank"><%=tStr[3]%></a>
                                    </div>
                                </td>   
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=GSBaseManager.getProductTypeByCode(tStr[25])%>
                                    <input type="hidden" id="isTradeFlatManuf<%=i%>" name="isTradeFlatManuf" value=" <%=GSBaseManager.getIsTradeManuf(tStr[4])%>">
                                    <input type="hidden" id="isTradeFlatProvider<%=i%>" name="isTradeFlatProvider" value="<%=tStr[20]%>">  
                                    <input type="hidden" name="isTradeFlatManufnum" value="<%=tStr[4]%>">
                                    </div>
                                </td>                                                           
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[5]%>
                                    </div>
                                </td>
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[6]%>
                                    </div>
                                </td>               
                                <td class=top align=middle>                                 
                                    <div align="center" class="txt_content">
                                    <%=tStr[7]%>
                                    </div>
                                </td> 
                                <td class=top align=middle>                                 
                                    <div align="center" class="txt_content">
                                    <%=tStr[27]%>
                                    </div>
                                </td>                                                  
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <a href="<%=response.encodeURL(root +"/A400108.do?providerId="+tStr[16])%>" target="_blank"><%=tStr[8]%></a>
                                    <input type='hidden' name="oldProviderId" value="<%=tStr[16]%>">
                                    </div>
                                </td>                               
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[9]%><%=tStr[10]%>
                                    <input type='hidden' name='oldOrderCount' value='<%=tStr[9]%>' >
                                    </div>
                                </td>                                                                                                   
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[11]%>
                                     <input type='hidden' id='unitprice<%=i%>' name='unitPrice' value='<%=tStr[11]%>'>
                                    </div>
                                </td>   
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[12]%>
                                    </div>
                                </td>                                                           
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[13]%>
                                    </div>
                                </td>           
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[14]%>
                                    <input type="hidden" id='deliverDate<%=i%>' name='deliverDate' value='<%=tStr[14]%>'">
                                    </div>
                                </td>                                                           
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[15]%>
                                    <input type=hidden id='deliverTime<%=i%>' name='deliverTime' value='<%=tStr[21]%>'>
                                    </div>
                                </td> 
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[24]%>
                                    <input type=hidden id='orderadder<%=i%>' name='orderadder' value='<%=tStr[24]%>'>
                                    </div>
                                </td>  
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[26]%>
                                    <input type=hidden id='orderadder<%=i%>' name='orderadder' value='<%=tStr[24]%>'>
                                    </div>
                                </td>                                                                   
                                <td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <a href="<%=response.encodeURL(root+"/A151006.do")%>?orderId=<%=tStr[17]%>&orderDetailId=<%=tStr[0]%>" target="_blank">详细</a>
                                    </div>
                                </td>                                                                                                                                                               
                            </tr> 
                    <%
                        }
                    %>
                          <tr class="bg_column" height=20>
                            <td width="960" height="16" colspan="20" align="right">
                                    <!--导航条-->
                                    <page:navigator type='text' queryForm='ordersubmitnonflatform'/>
                            </td>
                          </tr>                 
                    <%
                        }else{
                    %>  
                           <tr class="bg_column" height=20>
                            <td width="960" height="16" colspan="20" align="right">
                                    <font color="red">没有符合条件的订单信息</font>
                            </td>
                          </tr> 
                            
                    <%
                        }
                    %>
                    </tbody>
                </table>
                <br>
                <font color = "red">若您要执行打印操作,请选择相同供应商,订货单位的订单。</font>
                </form>                   
            </td>
        </tr>
    </table>
    </center>
    <p align="center">  
<!--    <input type="image" src="<%=response.encodeURL(root+"/images/button/tijiao.gif")%>" onclick="process('T')">&nbsp;-->
<!--        <input type="button" class="kuang" name="打印" value="打印" onclick="if(confirm('是否确定打印？')) print_bill(); else return false;"/>&nbsp;-->
        <input type="button" class="kuang" name="打印" value="打印" onclick="print()"/>
       <!-- <input type="button" class="kuang" name="已安排送货" value="已安排送货" onClick="process('S')">-->
       <!-- <input type="button" class="kuang" name="录入收货确认信息" value="录入收货确认信息" onClick="process('R')">-->
        <input type="button" class="kuang" name="重新提交" value="重新提交到APEP" onclick="process('TOA')">               
    </p>    
<%      
    }
    if(tOrder == null && isRequery != null && isRequery.equals("true")){
%>
    <font size="2">数据查询中......</font>
<%  
    }   
%>  
<form name="orderrecsigngoodsform" method="post">
    <input type="hidden" name="curOrderId" >
    <input type="hidden" name="curOrderDetailId" >
    <input type="hidden" name="devGoodsOrderId" >
    <input type="hidden" name="signer" >
    <input type="hidden" name="signCount" >
    <input type="hidden" name="signDate" >
    <input type="hidden" name="goodsUnitprice" >                        
    <input type="hidden" name="contactPerson" >
    <input type="hidden" name="contactPhone" >      
    <input type="hidden" name="orderDetailId">
    <input type="hidden" name="providerName">
    <input type="hidden" name="manuftype1">
    <input type="hidden" name="manuftype2">                     
    <input type="hidden" name="manuftype3">     
    <input type="hidden" name="orderDeptId">            
    <input type="hidden" name="deliverGoodsAddrId">     
    <input type="hidden" name="concentricityId"> 
    <input type="hidden" name="manufInfo"> 
    <input type="hidden" name="orderCreateDateStr"> 
    <input type="hidden" name="orderCreateDateEnd">         
    <input type="hidden" name="orderDetailStatus">     
    <input type="hidden" name="deliverGoodsId"> 
</form>
<script>
    function print(){
        var x=document.getElementsByName("orderDtlStatus");
        var y=document.getElementsByName("orderDetailIds");
        var dan=document.getElementsByName("danwei");
        var porid=document.getElementsByName("oldProviderId");
        var adder=document.getElementsByName("orderadder");
        var manfacturenum=document.getElementsByName("isTradeFlatManufnum");
        var dan2=new Array();
        var porid2=new Array();
        var adder2=new Array();
        var manfacturenum2=new Array();
        var a=0;
        var ord1;
        for(var i=0;i<x.length;i++){
            if(y[i].checked==true){
                dan2[a]=dan[i];
                porid2[a]=porid[i];
                adder2[a]=adder[i];
                manfacturenum2[a]=manfacturenum[i];
                a++;
            }
        }
        if(a==0){
            alert("请至少选择一条要打印记录");
            return false;
        }
        if(a>1){
            for(var i=0;i<dan2.length-1;i++){
                for(var j=i+1;j<dan2.length;j++){
                    if(dan2[i].value!= dan2[j].value){
                        alert("请选择相同订货单位订单"); 
                        return false;
                    }
                }
            }
            for(var i=0;i<adder2.length-1;i++){ 
                for(var j=i+1;j<adder2.length;j++){ 
                    if(adder2[i].value != adder2[j].value){
                        alert("请选择相同送货地址订单"); 
                        return false;
                    }
                }
            }
            for(var i=0;i<porid2.length-1;i++){ 
                for(var j=i+1;j<porid2.length;j++){ 
                    if(porid2[i].value != porid2[j].value){
                        alert("请选择相同供应商订单"); 
                        return false;
                    }
                }
            }
        }
        for(var i=0;i<x.length;i++){
            if(y[i].checked==true){
                if(x[i].value=='9'||x[i].value=='10'){
                    alert("不能打印'订货中'和'已确认'的订单");
                    return false;
                }
            }
        }
        var otemp=document.getElementsByName("orderDtlTempIds");
        for(i=0; i<x.length;i++){
            
            if(y[i].checked==true)
            {
                otemp[i].value = y[i].value;
            }
        }
        
        if(confirm('是否确定打印？')) {
            print_bill();           
            if(confirm('是否已成功打印订单?')){
                document.pager.orderDetailId.value = document.ordersubmitnonflatform.orderDetailId.value;
                document.pager.providerName.value = document.ordersubmitnonflatform.providerName.value;                 
                document.pager.concentricityId.value = document.ordersubmitnonflatform.concentricityId.value;
                document.pager.orderDeptId.value = document.ordersubmitnonflatform.orderDeptId.value;
                document.pager.manuftype1.value = document.ordersubmitnonflatform.manuftype1.value;
                document.pager.manuftype2.value = document.ordersubmitnonflatform.manuftype2.value;
                document.pager.manuftype3.value = document.ordersubmitnonflatform.manuftype3.value;
                document.pager.manufInfo.value = document.ordersubmitnonflatform.manufInfo.value;
                document.pager.orderCreateDateStr.value = document.ordersubmitnonflatform.orderCreateDateStr.value;                                                                             
                document.pager.orderCreateDateEnd.value = document.ordersubmitnonflatform.orderCreateDateEnd.value; 
                document.pager.orderDetailStatus.value = document.ordersubmitnonflatform.orderDetailStatus.value;               
                pager.deliverGoodsId.value = "<%=randNum%>";
                pager.action = "<%=response.encodeURL(root+"/A151007.do")%>";
                pager.submit();
            }else{
                return false;
            }
        }else{
            if(pager.orderDetailIds.length > 1){
                for(i=0; i<pager.orderDetailIds.length;i++){
                    pager.orderDetailIds[i].disabled = false;
                }
            }else{
                pager.orderDetailIds.disabled = false;
            }       
            return false;
        }
    }
</script>
<OBJECT
ID="F1Book1"
CLASSID="clsid:B0475003-7740-11D1-BDC3-0020AF9F8E6E"
CODEBASE="/activex/setup.exe"
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